boot-qemu.py: Check gdb_bin earlier#85
Conversation
Otherwise, the call to sys.exit() in die() does not work and we end up hanging. Additionally, move it out of the while loop, as it does not make send to check for gdb_bin every single time we want to invoke it. Reported-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Nathan Chancellor <nathan@kernel.org>
nickdesaulniers
left a comment
There was a problem hiding this comment.
Thanks!
Though I'm still perplexed; why does sys.exit(1) not end the process? That still seems like a bug to me.
According to Python's documentation around
So what I suspect is happening here is that |
Otherwise, the call to
sys.exit()indie()does not work and we end uphanging.
Additionally, move it out of the while loop, as it does not make send to
check for
gdb_binevery single time we want to invoke it.